package com.cn.mobileproject.activity;

import android.os.Bundle;
import android.support.v4.app.FragmentActivity;

import com.umeng.analytics.MobclickAgent;
import com.umeng.common.net.DownloadingService;

public class BaseActivity extends FragmentActivity{

	@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		MobclickAgent.onError(this);
	}

	@Override
	protected void onPause() {
		super.onPause();
		MobclickAgent.onPause(this);
	}

	@Override
	protected void onStart() {
		super.onStart();
		new DownloadingService();
	}
	
	protected void onResume(){
		super.onResume();
		MobclickAgent.onResume(this);
	}

	
	protected void onStop(){
		super.onStop();
//		FlurryAgent.onEndSession(this);
	}
	
	protected void initComponent(){}
	
	protected void initComponentValue(){}
	
	protected void initEvent(){}
}
